const KoaRouter = require("@koa/router");
const { create, list } = require("../controller/label.controller");
const { verifyAuth } = require("../middleware/login.middleware");

const labelRouter = new KoaRouter({ prefix: "/labels" });

labelRouter.post("/", verifyAuth, create); // 创建标签
labelRouter.get("/", list); // 获取标签列表

module.exports = labelRouter;
